package com.zzz.robot201.mvp.model.api.bean;

public class Register {

    /**
     * success : true
     * code : 200
     * msg : 注册并登陆成功~
     * data : {"user":{"id":1,"loginPhone":"15838229653","userName":null,"userHeadimg":null,"userGender":null,"userArea":null,"addtime":"2020-06-25 23:13:41","updatetime":"2020-06-25 23:13:41","userStatus":1},"token":"eyJhbGciOiJIUzI1NiJ9.eyJsb2dpbl9rZXkiOiIyMDFfbG9naW5fa2V5OjE6YzJmYjA4ZWRiNmY2NGI4Y2FkZTEyZjIzMmU2OTUyM2MifQ.9XZ3iFa4LI5PDW1J1olWLX33bkWkisVgR5A3iFawqS8"}
     */

    private boolean success;
    private String code;
    private String msg;
    private DataBean data;

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean {
        /**
         * user : {"id":1,"loginPhone":"15838229653","userName":null,"userHeadimg":null,"userGender":null,"userArea":null,"addtime":"2020-06-25 23:13:41","updatetime":"2020-06-25 23:13:41","userStatus":1}
         * token : eyJhbGciOiJIUzI1NiJ9.eyJsb2dpbl9rZXkiOiIyMDFfbG9naW5fa2V5OjE6YzJmYjA4ZWRiNmY2NGI4Y2FkZTEyZjIzMmU2OTUyM2MifQ.9XZ3iFa4LI5PDW1J1olWLX33bkWkisVgR5A3iFawqS8
         */

        private UserBean user;
        private String token;

        public UserBean getUser() {
            return user;
        }

        public void setUser(UserBean user) {
            this.user = user;
        }

        public String getToken() {
            return token;
        }

        public void setToken(String token) {
            this.token = token;
        }

        public static class UserBean {
            /**
             * id : 1
             * loginPhone : 15838229653
             * userName : null
             * userHeadimg : null
             * userGender : null
             * userArea : null
             * addtime : 2020-06-25 23:13:41
             * updatetime : 2020-06-25 23:13:41
             * userStatus : 1
             */

            private int id;
            private String loginPhone;
            private Object userName;
            private Object userHeadimg;
            private Object userGender;
            private Object userArea;
            private String addtime;
            private String updatetime;
            private int userStatus;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getLoginPhone() {
                return loginPhone;
            }

            public void setLoginPhone(String loginPhone) {
                this.loginPhone = loginPhone;
            }

            public Object getUserName() {
                return userName;
            }

            public void setUserName(Object userName) {
                this.userName = userName;
            }

            public Object getUserHeadimg() {
                return userHeadimg;
            }

            public void setUserHeadimg(Object userHeadimg) {
                this.userHeadimg = userHeadimg;
            }

            public Object getUserGender() {
                return userGender;
            }

            public void setUserGender(Object userGender) {
                this.userGender = userGender;
            }

            public Object getUserArea() {
                return userArea;
            }

            public void setUserArea(Object userArea) {
                this.userArea = userArea;
            }

            public String getAddtime() {
                return addtime;
            }

            public void setAddtime(String addtime) {
                this.addtime = addtime;
            }

            public String getUpdatetime() {
                return updatetime;
            }

            public void setUpdatetime(String updatetime) {
                this.updatetime = updatetime;
            }

            public int getUserStatus() {
                return userStatus;
            }

            public void setUserStatus(int userStatus) {
                this.userStatus = userStatus;
            }
        }
    }
}
